import { Controller, Delete, Get, Post, Put } from '@nestjs/common';
import { AppService } from './app.service';

@Controller('app')
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('/user')
  getHello(): string {
    return this.appService.getHello();
  }

  @Post('/user')
  addUser(): string{
    return this.appService.addUser()
  }

  @Put('user')
  editUser(): string{
    return this.appService.editUser()
  }

  @Delete('user')
  deleteUser(): string{
    return this.appService.deleteUser()
  }

  
}
